package com.rfsp.common.mapper;
import java.util.List;

import org.apache.ibatis.annotations.Param;
import org.apache.ibatis.annotations.Select;

import com.rfsp.common.base.BaseMapper;
import com.rfsp.common.pojo.po.DictPO;
import org.springframework.stereotype.Repository;

@Repository
public interface DictMapper extends BaseMapper<DictPO>{

	@Select("select * from M_DD_DICDETAIL t where t.DICTYPECODE = #{typeCode} order by diccode")
	List<DictPO> queryList(@Param("typeCode")String typeCode);
	
	@Select("select * from M_DD_DICDETAIL t where t.DICTYPECODE = #{typeCode} and t.diccode=#{dicCode}")
	DictPO getOne(@Param("typeCode")String typeCode, @Param("dicCode")String dicCode);
	
}
